<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "https://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" lang="zh">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=11"/>
<meta name="generator" content="Doxygen 1.10.0"/>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<title>SARibbon: SARibbonGalleryGroup类 参考</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<script type="text/javascript" src="clipboard.js"></script>
<link href="navtree.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="resize.js"></script>
<script type="text/javascript" src="navtreedata.js"></script>
<script type="text/javascript" src="navtree.js"></script>
<script type="text/javascript" src="cookie.js"></script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/searchdata.js"></script>
<script type="text/javascript" src="search/search.js"></script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
<link href="doxygen-awesome.css" rel="stylesheet" type="text/css"/>
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr id="projectrow">
  <td id="projectlogo"><img alt="Logo" src="SA-logo.png"/></td>
  <td id="projectalign">
   <div id="projectname">SARibbon<span id="projectnumber">&#160;2.4.2</span>
   </div>
   <div id="projectbrief">SARibbon wiki</div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- 制作者 Doxygen 1.10.0 -->
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:d3d9a9a6595521f9666a5e94cc830dab83b65699&amp;dn=expat.txt MIT */
var searchBox = new SearchBox("searchBox", "search/",'.html');
/* @license-end */
</script>
<script type="text/javascript" src="menudata.js"></script>
<script type="text/javascript" src="menu.js"></script>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:d3d9a9a6595521f9666a5e94cc830dab83b65699&amp;dn=expat.txt MIT */
$(function() {
  initMenu('',true,false,'search.php','搜索');
  $(function() { init_search(); });
});
/* @license-end */
</script>
<div id="main-nav"></div>
</div><!-- top -->
<div id="side-nav" class="ui-resizable side-nav-resizable">
  <div id="nav-tree">
    <div id="nav-tree-contents">
      <div id="nav-sync" class="sync"></div>
    </div>
  </div>
  <div id="splitbar" style="-moz-user-select:none;" 
       class="ui-resizable-handle">
  </div>
</div>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:d3d9a9a6595521f9666a5e94cc830dab83b65699&amp;dn=expat.txt MIT */
$(function(){initNavTree('class_s_a_ribbon_gallery_group.html',''); initResizable(); });
/* @license-end */
</script>
<div id="doc-content">
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
</div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<div id="MSearchResults">
<div class="SRPage">
<div id="SRIndex">
<div id="SRResults"></div>
<div class="SRStatus" id="Loading">载入中...</div>
<div class="SRStatus" id="Searching">搜索中...</div>
<div class="SRStatus" id="NoMatches">未找到</div>
</div>
</div>
</div>
</div>

<div class="header">
  <div class="summary">
<a href="#nested-classes">类</a> &#124;
<a href="#pub-types">Public 类型</a> &#124;
<a href="#signals">信号</a> &#124;
<a href="#pub-methods">Public 成员函数</a> &#124;
<a href="class_s_a_ribbon_gallery_group-members.html">所有成员列表</a>  </div>
  <div class="headertitle"><div class="title">SARibbonGalleryGroup类 参考</div></div>
</div><!--header-->
<div class="contents">

<p>Gallery的组  
 <a href="#details">更多...</a></p>

<p><code>#include &lt;<a class="el" href="_s_a_ribbon_gallery_group_8h_source.html">SARibbonGalleryGroup.h</a>&gt;</code></p>
<div class="dynheader">
类 SARibbonGalleryGroup 继承关系图:</div>
<div class="dyncontent">
 <div class="center">
  <img src="class_s_a_ribbon_gallery_group.png" alt=""/>
 </div></div>
<table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a id="nested-classes" name="nested-classes"></a>
类</h2></td></tr>
<tr class="memitem:"><td class="memItemLeft" align="right" valign="top">class &#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_s_a_ribbon_gallery_group_1_1_private_data.html">PrivateData</a></td></tr>
<tr class="memdesc:"><td class="mdescLeft">&#160;</td><td class="mdescRight">The SARibbonGalleryGroupPrivate class  <a href="class_s_a_ribbon_gallery_group_1_1_private_data.html#details">更多...</a><br /></td></tr>
<tr class="separator:"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a id="pub-types" name="pub-types"></a>
Public 类型</h2></td></tr>
<tr class="memitem:ad6ee14492c342f746152c1ced2fd740a" id="r_ad6ee14492c342f746152c1ced2fd740a"><td class="memItemLeft" align="right" valign="top">enum &#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="#ad6ee14492c342f746152c1ced2fd740a">GalleryGroupStyle</a> { <a class="el" href="#ad6ee14492c342f746152c1ced2fd740aabee68e33c4af4e8c58a03a139ba2ca2f">IconWithText</a>
, <a class="el" href="#ad6ee14492c342f746152c1ced2fd740aa1c1bfca39d56ae7f6439ed29fd0520dd">IconWithWordWrapText</a>
, <a class="el" href="#ad6ee14492c342f746152c1ced2fd740aa5df6da2ff88905f89f2957be6102909f">IconOnly</a>
 }</td></tr>
<tr class="memdesc:ad6ee14492c342f746152c1ced2fd740a"><td class="mdescLeft">&#160;</td><td class="mdescRight">GalleryGroup显示的样式  <a href="#ad6ee14492c342f746152c1ced2fd740a">更多...</a><br /></td></tr>
<tr class="separator:ad6ee14492c342f746152c1ced2fd740a"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:af40418f82818cc4f212461dfd7e6b6ab" id="r_af40418f82818cc4f212461dfd7e6b6ab"><td class="memItemLeft" align="right" valign="top">enum &#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="#af40418f82818cc4f212461dfd7e6b6ab">DisplayRow</a> { <a class="el" href="#af40418f82818cc4f212461dfd7e6b6abadc6f0ac48b4393c0eccd1a7780c39f3f">DisplayOneRow</a> = 1
, <b>DisplayTwoRow</b> = 2
, <b>DisplayThreeRow</b> = 3
 }</td></tr>
<tr class="memdesc:af40418f82818cc4f212461dfd7e6b6ab"><td class="mdescLeft">&#160;</td><td class="mdescRight">定义Gallery在一个pannel下面显示的图标行数  <a href="#af40418f82818cc4f212461dfd7e6b6ab">更多...</a><br /></td></tr>
<tr class="separator:af40418f82818cc4f212461dfd7e6b6ab"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a id="signals" name="signals"></a>
信号</h2></td></tr>
<tr class="memitem:a68564719a6269c8cc1de1b28014341be" id="r_a68564719a6269c8cc1de1b28014341be"><td class="memItemLeft" align="right" valign="top"><a id="a68564719a6269c8cc1de1b28014341be" name="a68564719a6269c8cc1de1b28014341be"></a>
void&#160;</td><td class="memItemRight" valign="bottom"><b>groupTitleChanged</b> (const QString &amp;title)</td></tr>
<tr class="separator:a68564719a6269c8cc1de1b28014341be"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a5d5268a42871f155312a67e1e561f388" id="r_a5d5268a42871f155312a67e1e561f388"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="#a5d5268a42871f155312a67e1e561f388">triggered</a> (QAction *action)</td></tr>
<tr class="memdesc:a5d5268a42871f155312a67e1e561f388"><td class="mdescLeft">&#160;</td><td class="mdescRight">等同QActionGroup的triggered 所有加入SARibbonGalleryGroup的action都会被一个QActionGroup管理,可以通过  <br /></td></tr>
<tr class="separator:a5d5268a42871f155312a67e1e561f388"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a124ef7ef070ec72b6214b858ead3d710" id="r_a124ef7ef070ec72b6214b858ead3d710"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="#a124ef7ef070ec72b6214b858ead3d710">hovered</a> (QAction *action)</td></tr>
<tr class="memdesc:a124ef7ef070ec72b6214b858ead3d710"><td class="mdescLeft">&#160;</td><td class="mdescRight">等同QActionGroup的triggered 所有加入SARibbonGalleryGroup的action都会被一个QActionGroup管理,可以通过  <br /></td></tr>
<tr class="separator:a124ef7ef070ec72b6214b858ead3d710"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a id="pub-methods" name="pub-methods"></a>
Public 成员函数</h2></td></tr>
<tr class="memitem:aeef5d4f61081d16a758946a39ba8d42b" id="r_aeef5d4f61081d16a758946a39ba8d42b"><td class="memItemLeft" align="right" valign="top"><a id="aeef5d4f61081d16a758946a39ba8d42b" name="aeef5d4f61081d16a758946a39ba8d42b"></a>
&#160;</td><td class="memItemRight" valign="bottom"><b>SARibbonGalleryGroup</b> (QWidget *w=0)</td></tr>
<tr class="separator:aeef5d4f61081d16a758946a39ba8d42b"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:abace992e4eeaae78ed5712fb55587b82" id="r_abace992e4eeaae78ed5712fb55587b82"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="#abace992e4eeaae78ed5712fb55587b82">setRecalcGridSizeBlock</a> (bool on=true)</td></tr>
<tr class="memdesc:abace992e4eeaae78ed5712fb55587b82"><td class="mdescLeft">&#160;</td><td class="mdescRight">是否禁止计算  <br /></td></tr>
<tr class="separator:abace992e4eeaae78ed5712fb55587b82"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:aa9067dbe5e551ab2300afcf28dcbe580" id="r_aa9067dbe5e551ab2300afcf28dcbe580"><td class="memItemLeft" align="right" valign="top"><a id="aa9067dbe5e551ab2300afcf28dcbe580" name="aa9067dbe5e551ab2300afcf28dcbe580"></a>
bool&#160;</td><td class="memItemRight" valign="bottom"><b>isRecalcGridSizeBlock</b> () const</td></tr>
<tr class="separator:aa9067dbe5e551ab2300afcf28dcbe580"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a7ebf4d82a25fe9eab518e6f8a8acfc01" id="r_a7ebf4d82a25fe9eab518e6f8a8acfc01"><td class="memItemLeft" align="right" valign="top"><a id="a7ebf4d82a25fe9eab518e6f8a8acfc01" name="a7ebf4d82a25fe9eab518e6f8a8acfc01"></a>
void&#160;</td><td class="memItemRight" valign="bottom"><b>recalcGridSize</b> ()</td></tr>
<tr class="memdesc:a7ebf4d82a25fe9eab518e6f8a8acfc01"><td class="mdescLeft">&#160;</td><td class="mdescRight">重新计算grid和icon的尺寸 <br /></td></tr>
<tr class="separator:a7ebf4d82a25fe9eab518e6f8a8acfc01"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ab2df0e35a43f61d74b13039f21f29aca" id="r_ab2df0e35a43f61d74b13039f21f29aca"><td class="memItemLeft" align="right" valign="top"><a id="ab2df0e35a43f61d74b13039f21f29aca" name="ab2df0e35a43f61d74b13039f21f29aca"></a>
void&#160;</td><td class="memItemRight" valign="bottom"><b>recalcGridSize</b> (int galleryHeight)</td></tr>
<tr class="separator:ab2df0e35a43f61d74b13039f21f29aca"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ac808cab13f6c20c1bf297f9b9d5f2bb5" id="r_ac808cab13f6c20c1bf297f9b9d5f2bb5"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="#ac808cab13f6c20c1bf297f9b9d5f2bb5">setGalleryGroupStyle</a> (<a class="el" href="#ad6ee14492c342f746152c1ced2fd740a">GalleryGroupStyle</a> style)</td></tr>
<tr class="memdesc:ac808cab13f6c20c1bf297f9b9d5f2bb5"><td class="mdescLeft">&#160;</td><td class="mdescRight">设置默认的预设样式  <br /></td></tr>
<tr class="separator:ac808cab13f6c20c1bf297f9b9d5f2bb5"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ab0a0f1a6bd76db0e629431fb8860f53f" id="r_ab0a0f1a6bd76db0e629431fb8860f53f"><td class="memItemLeft" align="right" valign="top"><a id="ab0a0f1a6bd76db0e629431fb8860f53f" name="ab0a0f1a6bd76db0e629431fb8860f53f"></a>
<a class="el" href="#ad6ee14492c342f746152c1ced2fd740a">GalleryGroupStyle</a>&#160;</td><td class="memItemRight" valign="bottom"><b>galleryGroupStyle</b> () const</td></tr>
<tr class="separator:ab0a0f1a6bd76db0e629431fb8860f53f"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a95300cc1822074c6297d5a98e242f619" id="r_a95300cc1822074c6297d5a98e242f619"><td class="memItemLeft" align="right" valign="top"><a id="a95300cc1822074c6297d5a98e242f619" name="a95300cc1822074c6297d5a98e242f619"></a>
void&#160;</td><td class="memItemRight" valign="bottom"><b>addItem</b> (const QString &amp;text, const QIcon &amp;icon)</td></tr>
<tr class="separator:a95300cc1822074c6297d5a98e242f619"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:abfa77706d2a7b5989e0cc080c11a9654" id="r_abfa77706d2a7b5989e0cc080c11a9654"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="#abfa77706d2a7b5989e0cc080c11a9654">addItem</a> (<a class="el" href="class_s_a_ribbon_gallery_item.html">SARibbonGalleryItem</a> *item)</td></tr>
<tr class="memdesc:abfa77706d2a7b5989e0cc080c11a9654"><td class="mdescLeft">&#160;</td><td class="mdescRight">添加一个条目  <br /></td></tr>
<tr class="separator:abfa77706d2a7b5989e0cc080c11a9654"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a248edf35623fde2404e9930e5c894cbf" id="r_a248edf35623fde2404e9930e5c894cbf"><td class="memItemLeft" align="right" valign="top"><a id="a248edf35623fde2404e9930e5c894cbf" name="a248edf35623fde2404e9930e5c894cbf"></a>
void&#160;</td><td class="memItemRight" valign="bottom"><b>addActionItem</b> (QAction *act)</td></tr>
<tr class="separator:a248edf35623fde2404e9930e5c894cbf"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:aa5c4bf9de25952d5585687e1fcd0ae53" id="r_aa5c4bf9de25952d5585687e1fcd0ae53"><td class="memItemLeft" align="right" valign="top"><a id="aa5c4bf9de25952d5585687e1fcd0ae53" name="aa5c4bf9de25952d5585687e1fcd0ae53"></a>
void&#160;</td><td class="memItemRight" valign="bottom"><b>addActionItemList</b> (const QList&lt; QAction * &gt; &amp;acts)</td></tr>
<tr class="separator:aa5c4bf9de25952d5585687e1fcd0ae53"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a5b0d4dcbdbb062b3a514e6dbbdca7c5f" id="r_a5b0d4dcbdbb062b3a514e6dbbdca7c5f"><td class="memItemLeft" align="right" valign="top"><a id="a5b0d4dcbdbb062b3a514e6dbbdca7c5f" name="a5b0d4dcbdbb062b3a514e6dbbdca7c5f"></a>
void&#160;</td><td class="memItemRight" valign="bottom"><b>setupGroupModel</b> ()</td></tr>
<tr class="memdesc:a5b0d4dcbdbb062b3a514e6dbbdca7c5f"><td class="mdescLeft">&#160;</td><td class="mdescRight">构建一个model，这个model的父类是SARibbonGalleryGroup，如果要共享model，需要手动处理model的父类 <br /></td></tr>
<tr class="separator:a5b0d4dcbdbb062b3a514e6dbbdca7c5f"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:af07b53519ff33aa1362ca486d91151b7" id="r_af07b53519ff33aa1362ca486d91151b7"><td class="memItemLeft" align="right" valign="top"><a id="af07b53519ff33aa1362ca486d91151b7" name="af07b53519ff33aa1362ca486d91151b7"></a>
<a class="el" href="class_s_a_ribbon_gallery_group_model.html">SARibbonGalleryGroupModel</a> *&#160;</td><td class="memItemRight" valign="bottom"><b>groupModel</b> ()</td></tr>
<tr class="separator:af07b53519ff33aa1362ca486d91151b7"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a03ddd192221a569a1c143b3fabedb46f" id="r_a03ddd192221a569a1c143b3fabedb46f"><td class="memItemLeft" align="right" valign="top"><a id="a03ddd192221a569a1c143b3fabedb46f" name="a03ddd192221a569a1c143b3fabedb46f"></a>
void&#160;</td><td class="memItemRight" valign="bottom"><b>setGroupTitle</b> (const QString &amp;title)</td></tr>
<tr class="separator:a03ddd192221a569a1c143b3fabedb46f"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a15d4764ce725b10d096c5932a10347a6" id="r_a15d4764ce725b10d096c5932a10347a6"><td class="memItemLeft" align="right" valign="top"><a id="a15d4764ce725b10d096c5932a10347a6" name="a15d4764ce725b10d096c5932a10347a6"></a>
QString&#160;</td><td class="memItemRight" valign="bottom"><b>groupTitle</b> () const</td></tr>
<tr class="separator:a15d4764ce725b10d096c5932a10347a6"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a2ae798a551ccb84bdc8522f745499ff1" id="r_a2ae798a551ccb84bdc8522f745499ff1"><td class="memItemLeft" align="right" valign="top"><a id="a2ae798a551ccb84bdc8522f745499ff1" name="a2ae798a551ccb84bdc8522f745499ff1"></a>
void&#160;</td><td class="memItemRight" valign="bottom"><b>selectByIndex</b> (int i)</td></tr>
<tr class="separator:a2ae798a551ccb84bdc8522f745499ff1"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a2bd732b88bfa91dae83dbcfa7569c7a9" id="r_a2bd732b88bfa91dae83dbcfa7569c7a9"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="#a2bd732b88bfa91dae83dbcfa7569c7a9">setDisplayRow</a> (<a class="el" href="#af40418f82818cc4f212461dfd7e6b6ab">DisplayRow</a> r)</td></tr>
<tr class="memdesc:a2bd732b88bfa91dae83dbcfa7569c7a9"><td class="mdescLeft">&#160;</td><td class="mdescRight">设置显示的行数  <br /></td></tr>
<tr class="separator:a2bd732b88bfa91dae83dbcfa7569c7a9"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:abd1ef70bff2771a2ba236a9c55e31afc" id="r_abd1ef70bff2771a2ba236a9c55e31afc"><td class="memItemLeft" align="right" valign="top"><a class="el" href="#af40418f82818cc4f212461dfd7e6b6ab">DisplayRow</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="#abd1ef70bff2771a2ba236a9c55e31afc">displayRow</a> () const</td></tr>
<tr class="memdesc:abd1ef70bff2771a2ba236a9c55e31afc"><td class="mdescLeft">&#160;</td><td class="mdescRight">Gallery显示的行数  <br /></td></tr>
<tr class="separator:abd1ef70bff2771a2ba236a9c55e31afc"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:aac9e96be76e58727bcddb8f8e409bf1b" id="r_aac9e96be76e58727bcddb8f8e409bf1b"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="#aac9e96be76e58727bcddb8f8e409bf1b">setGridMinimumWidth</a> (int w)</td></tr>
<tr class="memdesc:aac9e96be76e58727bcddb8f8e409bf1b"><td class="mdescLeft">&#160;</td><td class="mdescRight">设置grid最小的宽度，默认为0（不限制）  <br /></td></tr>
<tr class="separator:aac9e96be76e58727bcddb8f8e409bf1b"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a5f156ba2dbb08d0501084c34370ef6ef" id="r_a5f156ba2dbb08d0501084c34370ef6ef"><td class="memItemLeft" align="right" valign="top">int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="#a5f156ba2dbb08d0501084c34370ef6ef">gridMinimumWidth</a> () const</td></tr>
<tr class="memdesc:a5f156ba2dbb08d0501084c34370ef6ef"><td class="mdescLeft">&#160;</td><td class="mdescRight">grid最小的宽度，默认为0（不限制）  <br /></td></tr>
<tr class="separator:a5f156ba2dbb08d0501084c34370ef6ef"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a2432f5360bcda6beade203c7b411aaa5" id="r_a2432f5360bcda6beade203c7b411aaa5"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="#a2432f5360bcda6beade203c7b411aaa5">setGridMaximumWidth</a> (int w)</td></tr>
<tr class="memdesc:a2432f5360bcda6beade203c7b411aaa5"><td class="mdescLeft">&#160;</td><td class="mdescRight">设置grid最大的宽度，默认为0（不限制）  <br /></td></tr>
<tr class="separator:a2432f5360bcda6beade203c7b411aaa5"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ae518730d2a1f360dc77ba210c66c6dce" id="r_ae518730d2a1f360dc77ba210c66c6dce"><td class="memItemLeft" align="right" valign="top">int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="#ae518730d2a1f360dc77ba210c66c6dce">gridMaximumWidth</a> () const</td></tr>
<tr class="memdesc:ae518730d2a1f360dc77ba210c66c6dce"><td class="mdescLeft">&#160;</td><td class="mdescRight">grid最大的的宽度，默认为0（不限制）  <br /></td></tr>
<tr class="separator:ae518730d2a1f360dc77ba210c66c6dce"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a0d8d601f224d511ec53852b1f655fcac" id="r_a0d8d601f224d511ec53852b1f655fcac"><td class="memItemLeft" align="right" valign="top">QActionGroup *&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="#a0d8d601f224d511ec53852b1f655fcac">actionGroup</a> () const</td></tr>
<tr class="memdesc:a0d8d601f224d511ec53852b1f655fcac"><td class="mdescLeft">&#160;</td><td class="mdescRight">获取SARibbonGalleryGroup管理的actiongroup  <br /></td></tr>
<tr class="separator:a0d8d601f224d511ec53852b1f655fcac"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table>
<a name="details" id="details"></a><h2 class="groupheader">详细描述</h2>
<div class="textblock"><p>Gallery的组 </p>
<p>组负责显示管理Gallery Item </p>
</div><h2 class="groupheader">成员枚举类型说明</h2>
<a id="af40418f82818cc4f212461dfd7e6b6ab" name="af40418f82818cc4f212461dfd7e6b6ab"></a>
<h2 class="memtitle"><span class="permalink"><a href="#af40418f82818cc4f212461dfd7e6b6ab">&#9670;&#160;</a></span>DisplayRow</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">enum <a class="el" href="#af40418f82818cc4f212461dfd7e6b6ab">SARibbonGalleryGroup::DisplayRow</a></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>定义Gallery在一个pannel下面显示的图标行数 </p>
<table class="fieldtable">
<tr><th colspan="2">枚举值</th></tr><tr><td class="fieldname"><a id="af40418f82818cc4f212461dfd7e6b6abadc6f0ac48b4393c0eccd1a7780c39f3f" name="af40418f82818cc4f212461dfd7e6b6abadc6f0ac48b4393c0eccd1a7780c39f3f"></a>DisplayOneRow&#160;</td><td class="fielddoc"><p>显示1行，默认 </p>
</td></tr>
</table>

</div>
</div>
<a id="ad6ee14492c342f746152c1ced2fd740a" name="ad6ee14492c342f746152c1ced2fd740a"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ad6ee14492c342f746152c1ced2fd740a">&#9670;&#160;</a></span>GalleryGroupStyle</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">enum <a class="el" href="#ad6ee14492c342f746152c1ced2fd740a">SARibbonGalleryGroup::GalleryGroupStyle</a></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>GalleryGroup显示的样式 </p>
<table class="fieldtable">
<tr><th colspan="2">枚举值</th></tr><tr><td class="fieldname"><a id="ad6ee14492c342f746152c1ced2fd740aabee68e33c4af4e8c58a03a139ba2ca2f" name="ad6ee14492c342f746152c1ced2fd740aabee68e33c4af4e8c58a03a139ba2ca2f"></a>IconWithText&#160;</td><td class="fielddoc"><p>图标带文字 </p>
</td></tr>
<tr><td class="fieldname"><a id="ad6ee14492c342f746152c1ced2fd740aa1c1bfca39d56ae7f6439ed29fd0520dd" name="ad6ee14492c342f746152c1ced2fd740aa1c1bfca39d56ae7f6439ed29fd0520dd"></a>IconWithWordWrapText&#160;</td><td class="fielddoc"><p>图标带文字,文字会换行显示，此模式只会对DisplayOneRow生效，如果不是DisplayOneRow，等同IconWithText </p>
</td></tr>
<tr><td class="fieldname"><a id="ad6ee14492c342f746152c1ced2fd740aa5df6da2ff88905f89f2957be6102909f" name="ad6ee14492c342f746152c1ced2fd740aa5df6da2ff88905f89f2957be6102909f"></a>IconOnly&#160;</td><td class="fielddoc"><p>只有图标 </p>
</td></tr>
</table>

</div>
</div>
<h2 class="groupheader">成员函数说明</h2>
<a id="a0d8d601f224d511ec53852b1f655fcac" name="a0d8d601f224d511ec53852b1f655fcac"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a0d8d601f224d511ec53852b1f655fcac">&#9670;&#160;</a></span>actionGroup()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">QActionGroup * SARibbonGalleryGroup::actionGroup </td>
          <td>(</td>
          <td class="paramname"><span class="paramname"></span></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
</div><div class="memdoc">

<p>获取SARibbonGalleryGroup管理的actiongroup </p>
<dl class="section return"><dt>返回</dt><dd></dd></dl>

</div>
</div>
<a id="abfa77706d2a7b5989e0cc080c11a9654" name="abfa77706d2a7b5989e0cc080c11a9654"></a>
<h2 class="memtitle"><span class="permalink"><a href="#abfa77706d2a7b5989e0cc080c11a9654">&#9670;&#160;</a></span>addItem()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void SARibbonGalleryGroup::addItem </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="class_s_a_ribbon_gallery_item.html">SARibbonGalleryItem</a> *</td>          <td class="paramname"><span class="paramname"><em>item</em></span></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>添加一个条目 </p>
<dl class="params"><dt>参数</dt><dd>
  <table class="params">
    <tr><td class="paramname">item</td><td>条目的内存所有权归属SARibbonGalleryGroup管理 </td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
<a id="abd1ef70bff2771a2ba236a9c55e31afc" name="abd1ef70bff2771a2ba236a9c55e31afc"></a>
<h2 class="memtitle"><span class="permalink"><a href="#abd1ef70bff2771a2ba236a9c55e31afc">&#9670;&#160;</a></span>displayRow()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="#af40418f82818cc4f212461dfd7e6b6ab">SARibbonGalleryGroup::DisplayRow</a> SARibbonGalleryGroup::displayRow </td>
          <td>(</td>
          <td class="paramname"><span class="paramname"></span></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Gallery显示的行数 </p>
<dl class="section return"><dt>返回</dt><dd></dd></dl>

</div>
</div>
<a id="ae518730d2a1f360dc77ba210c66c6dce" name="ae518730d2a1f360dc77ba210c66c6dce"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ae518730d2a1f360dc77ba210c66c6dce">&#9670;&#160;</a></span>gridMaximumWidth()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">int SARibbonGalleryGroup::gridMaximumWidth </td>
          <td>(</td>
          <td class="paramname"><span class="paramname"></span></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
</div><div class="memdoc">

<p>grid最大的的宽度，默认为0（不限制） </p>
<dl class="params"><dt>参数</dt><dd>
  <table class="params">
    <tr><td class="paramname">w</td><td></td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
<a id="a5f156ba2dbb08d0501084c34370ef6ef" name="a5f156ba2dbb08d0501084c34370ef6ef"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a5f156ba2dbb08d0501084c34370ef6ef">&#9670;&#160;</a></span>gridMinimumWidth()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">int SARibbonGalleryGroup::gridMinimumWidth </td>
          <td>(</td>
          <td class="paramname"><span class="paramname"></span></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
</div><div class="memdoc">

<p>grid最小的宽度，默认为0（不限制） </p>
<dl class="section return"><dt>返回</dt><dd></dd></dl>

</div>
</div>
<a id="a124ef7ef070ec72b6214b858ead3d710" name="a124ef7ef070ec72b6214b858ead3d710"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a124ef7ef070ec72b6214b858ead3d710">&#9670;&#160;</a></span>hovered</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">void SARibbonGalleryGroup::hovered </td>
          <td>(</td>
          <td class="paramtype">QAction *</td>          <td class="paramname"><span class="paramname"><em>action</em></span></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">signal</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>等同QActionGroup的triggered 所有加入SARibbonGalleryGroup的action都会被一个QActionGroup管理,可以通过 </p>
<dl class="section see"><dt>参见</dt><dd>getActionGroup 获取到对应的actiongroup </dd></dl>
<dl class="section note"><dt>注解</dt><dd>此属性需要通过QAbstractItemView::entered(const QModelIndex &amp;index)激活，因此要保证设置了setMouseTracking(true) </dd></dl>
<dl class="params"><dt>参数</dt><dd>
  <table class="params">
    <tr><td class="paramname">action</td><td></td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
<a id="a2bd732b88bfa91dae83dbcfa7569c7a9" name="a2bd732b88bfa91dae83dbcfa7569c7a9"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a2bd732b88bfa91dae83dbcfa7569c7a9">&#9670;&#160;</a></span>setDisplayRow()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void SARibbonGalleryGroup::setDisplayRow </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="#af40418f82818cc4f212461dfd7e6b6ab">DisplayRow</a></td>          <td class="paramname"><span class="paramname"><em>r</em></span></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>设置显示的行数 </p>
<dl class="params"><dt>参数</dt><dd>
  <table class="params">
    <tr><td class="paramname">r</td><td></td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
<a id="ac808cab13f6c20c1bf297f9b9d5f2bb5" name="ac808cab13f6c20c1bf297f9b9d5f2bb5"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ac808cab13f6c20c1bf297f9b9d5f2bb5">&#9670;&#160;</a></span>setGalleryGroupStyle()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void SARibbonGalleryGroup::setGalleryGroupStyle </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="#ad6ee14492c342f746152c1ced2fd740a">SARibbonGalleryGroup::GalleryGroupStyle</a></td>          <td class="paramname"><span class="paramname"><em>style</em></span></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>设置默认的预设样式 </p>
<dl class="params"><dt>参数</dt><dd>
  <table class="params">
    <tr><td class="paramname">style</td><td></td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
<a id="a2432f5360bcda6beade203c7b411aaa5" name="a2432f5360bcda6beade203c7b411aaa5"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a2432f5360bcda6beade203c7b411aaa5">&#9670;&#160;</a></span>setGridMaximumWidth()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void SARibbonGalleryGroup::setGridMaximumWidth </td>
          <td>(</td>
          <td class="paramtype">int</td>          <td class="paramname"><span class="paramname"><em>w</em></span></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>设置grid最大的宽度，默认为0（不限制） </p>
<dl class="params"><dt>参数</dt><dd>
  <table class="params">
    <tr><td class="paramname">w</td><td></td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
<a id="aac9e96be76e58727bcddb8f8e409bf1b" name="aac9e96be76e58727bcddb8f8e409bf1b"></a>
<h2 class="memtitle"><span class="permalink"><a href="#aac9e96be76e58727bcddb8f8e409bf1b">&#9670;&#160;</a></span>setGridMinimumWidth()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void SARibbonGalleryGroup::setGridMinimumWidth </td>
          <td>(</td>
          <td class="paramtype">int</td>          <td class="paramname"><span class="paramname"><em>w</em></span></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>设置grid最小的宽度，默认为0（不限制） </p>
<dl class="params"><dt>参数</dt><dd>
  <table class="params">
    <tr><td class="paramname">w</td><td></td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
<a id="abace992e4eeaae78ed5712fb55587b82" name="abace992e4eeaae78ed5712fb55587b82"></a>
<h2 class="memtitle"><span class="permalink"><a href="#abace992e4eeaae78ed5712fb55587b82">&#9670;&#160;</a></span>setRecalcGridSizeBlock()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void SARibbonGalleryGroup::setRecalcGridSizeBlock </td>
          <td>(</td>
          <td class="paramtype">bool</td>          <td class="paramname"><span class="paramname"><em>on</em><span class="paramdefsep"> = </span><span class="paramdefval">true</span></span></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>是否禁止计算 </p>
<dl class="params"><dt>参数</dt><dd>
  <table class="params">
    <tr><td class="paramname">on</td><td></td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
<a id="a5d5268a42871f155312a67e1e561f388" name="a5d5268a42871f155312a67e1e561f388"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a5d5268a42871f155312a67e1e561f388">&#9670;&#160;</a></span>triggered</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">void SARibbonGalleryGroup::triggered </td>
          <td>(</td>
          <td class="paramtype">QAction *</td>          <td class="paramname"><span class="paramname"><em>action</em></span></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">signal</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>等同QActionGroup的triggered 所有加入SARibbonGalleryGroup的action都会被一个QActionGroup管理,可以通过 </p>
<dl class="section see"><dt>参见</dt><dd>getActionGroup 获取到对应的actiongroup </dd></dl>
<dl class="params"><dt>参数</dt><dd>
  <table class="params">
    <tr><td class="paramname">action</td><td></td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
<hr/>该类的文档由以下文件生成:<ul>
<li>C:/src/Qt/SARibbon/src/SARibbonBar/<a class="el" href="_s_a_ribbon_gallery_group_8h_source.html">SARibbonGalleryGroup.h</a></li>
<li>C:/src/Qt/SARibbon/src/SARibbonBar/<b>SARibbonGalleryGroup.cpp</b></li>
</ul>
</div><!-- contents -->
</div><!-- doc-content -->
<!-- start footer part -->
<div id="nav-path" class="navpath"><!-- id is needed for treeview function! -->
  <ul>
    <li class="navelem"><a class="el" href="class_s_a_ribbon_gallery_group.html">SARibbonGalleryGroup</a></li>
    <li class="footer">制作者 <a href="https://www.doxygen.org/index.html"><img class="footer" src="doxygen.svg" width="104" height="31" alt="doxygen"/></a> 1.10.0 </li>
  </ul>
</div>
</body>
</html>
